<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/29
 * Time: 14:03
 */

namespace app\api\validate;

class Address extends BaseValidate
{
    protected $rule = [
        'name' => 'require|isEmpty',
        'mobile' => 'require|isMobile',
        'province' => 'require|isEmpty',
        'city' => 'require|isEmpty',
        'country' => 'require|isEmpty',
        'detail' => 'require|isEmpty',
    ];
    protected $message = [
        'name.require' => '用户名必须存在',
        'name.isEmpty' => '用户名不能为空',
        'mobile.require' => '电话号码必须存在',
        'mobile.isMobile' => '电话号码格式不正确',
        'province.require' => '省份地址必须存在',
        'city.require' => '城市地址必须存在',
        'country.require' => '区域地址必须存在',
        'detail.require' => '祥情地址必须存在',
    ];
}